/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model.interfaces;

import java.util.List;
import javax.persistence.NoResultException;
import javax.persistence.PersistenceException;
import model.excecoes.ErroDAOException;
import model.excecoes.ErroNegocioException;
import model.funcionario.Funcionario;


/**
 *
 * @author Marcos
 */
public interface INegocioFuncionario {
   public void cadastrarFuncionario(Funcionario funcionario)throws ErroDAOException, PersistenceException, NoResultException, ErroNegocioException;
   public void alterarFuncionario(Funcionario funcionario)throws ErroDAOException, PersistenceException, NoResultException, ErroNegocioException;
   public void excluirFuncionario(Funcionario funcionario)throws ErroDAOException, PersistenceException, NoResultException, ErroNegocioException;
   public List<Funcionario> listarFuncionario(String consulta, String campo)throws ErroDAOException, PersistenceException, NoResultException, ErroNegocioException;
   public Funcionario logarFuncionario(String login, String senha)throws ErroDAOException, PersistenceException, NoResultException, ErroNegocioException;
}
